<include file="../Public/header" />
<load href="__PUBLIC__/Js/Ajax/ThinkAjax-1.js" />
<load href="__PUBLIC__/Js/UserJs.js" />
<script language="javascript">
function yhServer(Ful,lx){
	var str = $F(Ful).replace(/^\s+|\s+$/g,"");
	var re = /[^(\w){6,20}$]/g;
	str = str.replace(re,"");
	document.getElementById(Ful).value = str;
	if (str != ""){
		if(lx==0){ThinkAjax.send('__APP__/Fck/check_shopid/','ajax=1&shopid='+str,'',Ful+'1');}
		if(lx==1){ThinkAjax.send('__APP__/Fck/check_reid/','ajax=1&reid='+str,'',Ful+'1');}
		if(lx==2){ThinkAjax.send('__APP__/Fck/check_fid/','ajax=1&fid='+str,'',Ful+'1');}
		if(lx==3){ThinkAjax.send('__APP__/Fck/check_userid/','ajax=1&userid='+str,'',Ful+'1');}
	}
}
function guolv(Ful){
	var str = $F(Ful).replace(/^\s+|\s+$/g,"");
	var re = /[^(\w){6,20}$]/g;
	str = str.replace(re,"");
	document.getElementById(Ful).value = str;
}
function ajaxagent(){
	var divp = document.getElementById("showagent");
	if(divp.style.display=="none"){
		var xmlHttp;
		try{
			//FF Opear 8.0+ Safair
			xmlHttp=new XMLHttpRequest();
		}
		catch(e){
			try{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				alert("您的浏览器不支持AJAX");
				return false;    
			}
		}
		xmlHttp.onreadystatechange=function(){
			if(xmlHttp.readyState==4){
				var valuet = xmlHttp.responseText;
				document.getElementById("agentall").innerHTML=valuet;
				window.parent.turnHeight('main');
			}
		}
		var url="__URL__/find_agent/";
		url+="/sid/"+Math.random();
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		divp.style.display="block";
	}else{
		divp.style.display="none";
	}
}
</script>
<style>
#agentall{ width:100%;}
#agentall li{ width:230px; float:left; padding:5px; line-height:22px;}
</style>
<div class="ncenter_box">
<div class="accounttitle"><h1>短信配置 </h1></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab1">
  <tr>
    <td>
    <form method='post' id="form1" name="form1" action=""/>
    <table width="100%" border="0" cellpadding="3" cellspacing="0" class="tab4">
      <tr>
        <td align="right"><span class="zc_hong">*</span>ACCOUNT SID：</td>
        <td><input name="sid" type="text" class="ipt" id="sid" onFocus="notice('11','')"  onblur="notice('11','none')" onKeyUp="javascript:Null_Full(this.name)" value="{$config.sms_account}" maxlength="32" /></td>
        <td><div id="sid1" class="info"><div id="11" class="focus_r" style="display:none;"><div class="msg_tip">请输入SID。</div></div></div></td>
      </tr>
      <tr>
        <td align="right">AUTH TOKEN：</td>
        <td><input name="token" type="text" class="ipt" id="token" onFocus="notice('12','')"  onblur="notice('12','none')" onKeyUp="javascript:Null_Full(this.name)" value="{$config.sms_token}"/></td>
        <td><div id="token1" class="info"><div id="12" class="focus_r" style="display:none;"><div class="msg_tip">请输入TOKEN</div></div></div></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span>APPID：</td>
        <td><input name="appid" type="text" class="ipt"  id="appid" onFocus="notice('15','')"  onblur="notice('15','none')" onKeyUp="javascript:Null_Full(this.name)" value="{$config.sms_appid}" /></td>
        <td><div id="appid1" class="info"><div id="15" class="focus_r" style="display:none;"><div class="msg_tip">请输入APPID</div></div></div></td>
      </tr>
      <tr>
        <td align="right">Template ID(验证码模板ID)：</td>
        <td><input name="tid" type="text"  id="tid" class="ipt" onKeyUp="javascript:Null_Int(this.name)" onFocus="notice('16','')"  onblur="notice('16','none')" value="{$config.sms_tid}" /></td>
        <td><div id="tid1" class="info"><div id="16" class="focus_r" style="display:none;"><div class="msg_tip">输入验证码模板的ID。</div></div></div></td>
      </tr>
      
      
      <tr>
        <td align="right">&nbsp;</td>
        <td><span class="center">
          <input name="submit1" id="Access" type="submit" class="button_text" value="确认" />
&nbsp;&nbsp;
<input name="重置" type="reset" class="button_text" value="重置" id="重置" />
        </span></td>
        <td>&nbsp;</td>
      </tr>
    </table>
    </form>
    </td>
  </tr>
</table>
</div>
</body>
</html>